<?php

class Category extends \Eloquent {

    protected $table = 'category';

    protected $fillable = [
        'name',
        'model_id',
    ];

    public function model(){
        return $this->belongsTo('Model', 'model_id', 'id');
    }
}